package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.gulimall.product.to.MemberPriceTo;
import com.guli.gulimall.product.to.SkuFullReductionTo;
import com.guli.gulimall.product.to.SkuLadderTo;
import com.guli.gulimall.product.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author WZH
 * @title: FeignSms
 * @projectName gulimall-java
 * @description:
 * @date 2021/12/21
 */
@FeignClient("gulimall-coupon")
public interface FeignSms {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skuladder/save")
    R saveskuLadder(@RequestBody SkuLadderTo skuLadderTo);

    @PostMapping("/coupon/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @PostMapping("/coupon/memberprice/save")
    R saveMemberPrice(@RequestBody List<MemberPriceTo> MemberPrices);
}
